<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="App\Repository\LiveRepository")
 */
class Live
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="string", length=255)
     */
    private $title;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $gradeId;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $subjectId;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $teacherId;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $startdate;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $enddate;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $tips;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $pic;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $url;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $scan;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $intro;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $content;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isTop;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isHot;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isOn;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $addtime;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $updatetime;

    /**
     * @ORM\Column(type="float")
     */
    private $price = 0;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $time;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $timeInt;

    public function getId()
    {
        return $this->id;
    }

    public function getTitle(): ?string
    {
        return $this->title;
    }

    public function setTitle(string $title): self
    {
        $this->title = $title;

        return $this;
    }

    public function getGradeId(): ?int
    {
        return $this->gradeId;
    }

    public function setGradeId(?int $gradeId): self
    {
        $this->gradeId = $gradeId;

        return $this;
    }

    public function getSubjectId(): ?int
    {
        return $this->subjectId;
    }

    public function setSubjectId(?int $subjectId): self
    {
        $this->subjectId = $subjectId;

        return $this;
    }

    public function getTeacherId(): ?int
    {
        return $this->teacherId;
    }

    public function setTeacherId(?int $teacherId): self
    {
        $this->teacherId = $teacherId;

        return $this;
    }

    public function getStartdate(): ?string
    {
        return $this->startdate;
    }

    public function setStartdate(?string $startdate): self
    {
        $this->startdate = $startdate;

        return $this;
    }

    public function getEnddate(): ?string
    {
        return $this->enddate;
    }

    public function setEnddate(?string $enddate): self
    {
        $this->enddate = $enddate;

        return $this;
    }

    public function getTips(): ?string
    {
        return $this->tips;
    }

    public function setTips(?string $tips): self
    {
        $this->tips = $tips;

        return $this;
    }

    public function getPic(): ?string
    {
        return $this->pic;
    }

    public function setPic(?string $pic): self
    {
        $this->pic = $pic;

        return $this;
    }

    public function getUrl(): ?string
    {
        return $this->url;
    }

    public function setUrl(?string $url): self
    {
        $this->url = $url;

        return $this;
    }

    public function getScan(): ?string
    {
        return $this->scan;
    }

    public function setScan(?string $scan): self
    {
        $this->scan = $scan;

        return $this;
    }

    public function getIntro(): ?string
    {
        return $this->intro;
    }

    public function setIntro(?string $intro): self
    {
        $this->intro = $intro;

        return $this;
    }

    public function getContent(): ?string
    {
        return $this->content;
    }

    public function setContent(?string $content): self
    {
        $this->content = $content;

        return $this;
    }

    public function getIsTop(): ?int
    {
        return $this->isTop;
    }

    public function setIsTop(?int $isTop): self
    {
        $this->isTop = $isTop;

        return $this;
    }

    public function getIsHot(): ?int
    {
        return $this->isHot;
    }

    public function setIsHot(?int $isHot): self
    {
        $this->isHot = $isHot;

        return $this;
    }

    public function getIsOn(): ?int
    {
        return $this->isOn;
    }

    public function setIsOn(?int $isOn): self
    {
        $this->isOn = $isOn;

        return $this;
    }

    public function getAddtime(): ?string
    {
        return $this->addtime;
    }

    public function setAddtime(?string $addtime): self
    {
        $this->addtime = $addtime;

        return $this;
    }

    public function getUpdatetime(): ?string
    {
        return $this->updatetime;
    }

    public function setUpdatetime(?string $updatetime): self
    {
        $this->updatetime = $updatetime;

        return $this;
    }

    public function getPrice(): ?float
    {
        return $this->price;
    }

    public function setPrice(float $price): self
    {
        $this->price = $price;

        return $this;
    }

    public function getTime(): ?string
    {
        return $this->time;
    }

    public function setTime(?string $time): self
    {
        $this->time = $time;

        return $this;
    }

    public function getTimeInt(): ?int
    {
        return $this->timeInt;
    }

    public function setTimeInt(?int $timeInt): self
    {
        $this->timeInt = $timeInt;

        return $this;
    }
}
